package com.ct.MapStruct.Model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class UserMapStruct implements java.io.Serializable {
    // 用户id
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("user_name")
    private String userName;
    @TableField("age")
    private Integer age;
    @TableField("email")
    private String email;
    @TableField("creaed_time")
    private Date creaedTime ;
    @TableField("update_time")
    private Date updateTime;
}